import request from '@/config/axios'

export const registerCustomer = async (data) => {
  return await request.post({
    url: 'customer/register',
    data
  })
}

export const createCustomer = async (data) => {
  return await request.post({
    url: '/customer/create',
    data
  })
}

export const sendSmsCode = async (data) => {
  return await request.post({
    url: '/system/auth/send-sms-code',
    data
  })
}

export const getProcess = async (params) => {
  return await request.get({
    url: '/customer/getProcess',
    params
  })
}
